%
% Status : main Dynare file
%
% Warning : this file is generated automatically by Dynare
%           from model file (.mod)

tic0 = tic;
% Save empty dates and dseries objects in memory.
dates('initialize');
dseries('initialize');
% Define global variables.
global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_
options_ = [];
M_.fname = 'dynaremodel_KurmannSims_Part3';
M_.dynare_version = '4.5.7';
oo_.dynare_version = '4.5.7';
options_.dynare_version = '4.5.7';
%
% Some global variables initialization
%
global_initialization;
diary off;
M_.exo_names = 'eA';
M_.exo_names_tex = 'eA';
M_.exo_names_long = 'eA';
M_.exo_names = char(M_.exo_names, 'ei');
M_.exo_names_tex = char(M_.exo_names_tex, 'ei');
M_.exo_names_long = char(M_.exo_names_long, 'ei');
M_.exo_names = char(M_.exo_names, 'eg');
M_.exo_names_tex = char(M_.exo_names_tex, 'eg');
M_.exo_names_long = char(M_.exo_names_long, 'eg');
M_.exo_names = char(M_.exo_names, 'et');
M_.exo_names_tex = char(M_.exo_names_tex, 'et');
M_.exo_names_long = char(M_.exo_names_long, 'et');
M_.exo_names = char(M_.exo_names, 'em');
M_.exo_names_tex = char(M_.exo_names_tex, 'em');
M_.exo_names_long = char(M_.exo_names_long, 'em');
M_.exo_names = char(M_.exo_names, 'ep');
M_.exo_names_tex = char(M_.exo_names_tex, 'ep');
M_.exo_names_long = char(M_.exo_names_long, 'ep');
M_.exo_names = char(M_.exo_names, 'eu');
M_.exo_names_tex = char(M_.exo_names_tex, 'eu');
M_.exo_names_long = char(M_.exo_names_long, 'eu');
M_.endo_names = 'G';
M_.endo_names_tex = 'G';
M_.endo_names_long = 'G';
M_.endo_names = char(M_.endo_names, 'Gh');
M_.endo_names_tex = char(M_.endo_names_tex, 'Gh');
M_.endo_names_long = char(M_.endo_names_long, 'Gh');
M_.endo_names = char(M_.endo_names, 'Ge');
M_.endo_names_tex = char(M_.endo_names_tex, 'Ge');
M_.endo_names_long = char(M_.endo_names_long, 'Ge');
M_.endo_names = char(M_.endo_names, 'lam1');
M_.endo_names_tex = char(M_.endo_names_tex, 'lam1');
M_.endo_names_long = char(M_.endo_names_long, 'lam1');
M_.endo_names = char(M_.endo_names, 'lam2');
M_.endo_names_tex = char(M_.endo_names_tex, 'lam2');
M_.endo_names_long = char(M_.endo_names_long, 'lam2');
M_.endo_names = char(M_.endo_names, 'vap');
M_.endo_names_tex = char(M_.endo_names_tex, 'vap');
M_.endo_names_long = char(M_.endo_names_long, 'vap');
M_.endo_names = char(M_.endo_names, 'C');
M_.endo_names_tex = char(M_.endo_names_tex, 'C');
M_.endo_names_long = char(M_.endo_names_long, 'C');
M_.endo_names = char(M_.endo_names, 'int');
M_.endo_names_tex = char(M_.endo_names_tex, 'int');
M_.endo_names_long = char(M_.endo_names_long, 'int');
M_.endo_names = char(M_.endo_names, 'Pi');
M_.endo_names_tex = char(M_.endo_names_tex, 'Pi');
M_.endo_names_long = char(M_.endo_names_long, 'Pi');
M_.endo_names = char(M_.endo_names, 'R');
M_.endo_names_tex = char(M_.endo_names_tex, 'R');
M_.endo_names_long = char(M_.endo_names_long, 'R');
M_.endo_names = char(M_.endo_names, 'z');
M_.endo_names_tex = char(M_.endo_names_tex, 'z');
M_.endo_names_long = char(M_.endo_names_long, 'z');
M_.endo_names = char(M_.endo_names, 'theta');
M_.endo_names_tex = char(M_.endo_names_tex, 'theta');
M_.endo_names_long = char(M_.endo_names_long, 'theta');
M_.endo_names = char(M_.endo_names, 'e');
M_.endo_names_tex = char(M_.endo_names_tex, 'e');
M_.endo_names_long = char(M_.endo_names_long, 'e');
M_.endo_names = char(M_.endo_names, 'h');
M_.endo_names_tex = char(M_.endo_names_tex, 'h');
M_.endo_names_long = char(M_.endo_names_long, 'h');
M_.endo_names = char(M_.endo_names, 'mrs');
M_.endo_names_tex = char(M_.endo_names_tex, 'mrs');
M_.endo_names_long = char(M_.endo_names_long, 'mrs');
M_.endo_names = char(M_.endo_names, 'mui');
M_.endo_names_tex = char(M_.endo_names_tex, 'mui');
M_.endo_names_long = char(M_.endo_names_long, 'mui');
M_.endo_names = char(M_.endo_names, 'I');
M_.endo_names_tex = char(M_.endo_names_tex, 'I');
M_.endo_names_long = char(M_.endo_names_long, 'I');
M_.endo_names = char(M_.endo_names, 'K');
M_.endo_names_tex = char(M_.endo_names_tex, 'K');
M_.endo_names_long = char(M_.endo_names_long, 'K');
M_.endo_names = char(M_.endo_names, 'Lam');
M_.endo_names_tex = char(M_.endo_names_tex, 'Lam');
M_.endo_names_long = char(M_.endo_names_long, 'Lam');
M_.endo_names = char(M_.endo_names, 'f1');
M_.endo_names_tex = char(M_.endo_names_tex, 'f1');
M_.endo_names_long = char(M_.endo_names_long, 'f1');
M_.endo_names = char(M_.endo_names, 'f2');
M_.endo_names_tex = char(M_.endo_names_tex, 'f2');
M_.endo_names_long = char(M_.endo_names_long, 'f2');
M_.endo_names = char(M_.endo_names, 'w');
M_.endo_names_tex = char(M_.endo_names_tex, 'w');
M_.endo_names_long = char(M_.endo_names_long, 'w');
M_.endo_names = char(M_.endo_names, 'Ld');
M_.endo_names_tex = char(M_.endo_names_tex, 'Ld');
M_.endo_names_long = char(M_.endo_names_long, 'Ld');
M_.endo_names = char(M_.endo_names, 'N');
M_.endo_names_tex = char(M_.endo_names_tex, 'N');
M_.endo_names_long = char(M_.endo_names_long, 'N');
M_.endo_names = char(M_.endo_names, 'wr');
M_.endo_names_tex = char(M_.endo_names_tex, 'wr');
M_.endo_names_long = char(M_.endo_names_long, 'wr');
M_.endo_names = char(M_.endo_names, 'x1');
M_.endo_names_tex = char(M_.endo_names_tex, 'x1');
M_.endo_names_long = char(M_.endo_names_long, 'x1');
M_.endo_names = char(M_.endo_names, 'x2');
M_.endo_names_tex = char(M_.endo_names_tex, 'x2');
M_.endo_names_long = char(M_.endo_names_long, 'x2');
M_.endo_names = char(M_.endo_names, 'pm');
M_.endo_names_tex = char(M_.endo_names_tex, 'pm');
M_.endo_names_long = char(M_.endo_names_long, 'pm');
M_.endo_names = char(M_.endo_names, 'Y');
M_.endo_names_tex = char(M_.endo_names_tex, 'Y');
M_.endo_names_long = char(M_.endo_names_long, 'Y');
M_.endo_names = char(M_.endo_names, 'pr');
M_.endo_names_tex = char(M_.endo_names_tex, 'pr');
M_.endo_names_long = char(M_.endo_names_long, 'pr');
M_.endo_names = char(M_.endo_names, 'A');
M_.endo_names_tex = char(M_.endo_names_tex, 'A');
M_.endo_names_long = char(M_.endo_names_long, 'A');
M_.endo_names = char(M_.endo_names, 'Kser');
M_.endo_names_tex = char(M_.endo_names_tex, 'Kser');
M_.endo_names_long = char(M_.endo_names_long, 'Kser');
M_.endo_names = char(M_.endo_names, 'vp');
M_.endo_names_tex = char(M_.endo_names_tex, 'vp');
M_.endo_names_long = char(M_.endo_names_long, 'vp');
M_.endo_names = char(M_.endo_names, 'L');
M_.endo_names_tex = char(M_.endo_names_tex, 'L');
M_.endo_names_long = char(M_.endo_names_long, 'L');
M_.endo_names = char(M_.endo_names, 'vw');
M_.endo_names_tex = char(M_.endo_names_tex, 'vw');
M_.endo_names_long = char(M_.endo_names_long, 'vw');
M_.endo_names = char(M_.endo_names, 'g');
M_.endo_names_tex = char(M_.endo_names_tex, 'g');
M_.endo_names_long = char(M_.endo_names_long, 'g');
M_.endo_names = char(M_.endo_names, 'gX');
M_.endo_names_tex = char(M_.endo_names_tex, 'gX');
M_.endo_names_long = char(M_.endo_names_long, 'gX');
M_.endo_names = char(M_.endo_names, 'du');
M_.endo_names_tex = char(M_.endo_names_tex, 'du');
M_.endo_names_long = char(M_.endo_names_long, 'du');
M_.endo_names = char(M_.endo_names, 'dh');
M_.endo_names_tex = char(M_.endo_names_tex, 'dh');
M_.endo_names_long = char(M_.endo_names_long, 'dh');
M_.endo_names = char(M_.endo_names, 'duob');
M_.endo_names_tex = char(M_.endo_names_tex, 'duob');
M_.endo_names_long = char(M_.endo_names_long, 'duob');
M_.endo_names = char(M_.endo_names, 'dtfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'dtfp');
M_.endo_names_long = char(M_.endo_names_long, 'dtfp');
M_.endo_names = char(M_.endo_names, 'dtfpu');
M_.endo_names_tex = char(M_.endo_names_tex, 'dtfpu');
M_.endo_names_long = char(M_.endo_names_long, 'dtfpu');
M_.endo_names = char(M_.endo_names, 'dtfpc');
M_.endo_names_tex = char(M_.endo_names_tex, 'dtfpc');
M_.endo_names_long = char(M_.endo_names_long, 'dtfpc');
M_.endo_names = char(M_.endo_names, 'dY');
M_.endo_names_tex = char(M_.endo_names_tex, 'dY');
M_.endo_names_long = char(M_.endo_names_long, 'dY');
M_.endo_names = char(M_.endo_names, 'dC');
M_.endo_names_tex = char(M_.endo_names_tex, 'dC');
M_.endo_names_long = char(M_.endo_names_long, 'dC');
M_.endo_names = char(M_.endo_names, 'dK');
M_.endo_names_tex = char(M_.endo_names_tex, 'dK');
M_.endo_names_long = char(M_.endo_names_long, 'dK');
M_.endo_names = char(M_.endo_names, 'dhN');
M_.endo_names_tex = char(M_.endo_names_tex, 'dhN');
M_.endo_names_long = char(M_.endo_names_long, 'dhN');
M_.endo_names = char(M_.endo_names, 'hN');
M_.endo_names_tex = char(M_.endo_names_tex, 'hN');
M_.endo_names_long = char(M_.endo_names_long, 'hN');
M_.endo_names = char(M_.endo_names, 'hu');
M_.endo_names_tex = char(M_.endo_names_tex, 'hu');
M_.endo_names_long = char(M_.endo_names_long, 'hu');
M_.endo_names = char(M_.endo_names, 'dtech');
M_.endo_names_tex = char(M_.endo_names_tex, 'dtech');
M_.endo_names_long = char(M_.endo_names_long, 'dtech');
M_.endo_names = char(M_.endo_names, 'lshare');
M_.endo_names_tex = char(M_.endo_names_tex, 'lshare');
M_.endo_names_long = char(M_.endo_names_long, 'lshare');
M_.endo_names = char(M_.endo_names, 'AUX_EXO_LAG_53_0');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_EXO\_LAG\_53\_0');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_EXO_LAG_53_0');
M_.endo_partitions = struct();
M_.param_names = 'Gs';
M_.param_names_tex = 'Gs';
M_.param_names_long = 'Gs';
M_.param_names = char(M_.param_names, 'alpha');
M_.param_names_tex = char(M_.param_names_tex, 'alpha');
M_.param_names_long = char(M_.param_names_long, 'alpha');
M_.param_names = char(M_.param_names, 'beta');
M_.param_names_tex = char(M_.param_names_tex, 'beta');
M_.param_names_long = char(M_.param_names_long, 'beta');
M_.param_names = char(M_.param_names, 'delta');
M_.param_names_tex = char(M_.param_names_tex, 'delta');
M_.param_names_long = char(M_.param_names_long, 'delta');
M_.param_names = char(M_.param_names, 'phiw');
M_.param_names_tex = char(M_.param_names_tex, 'phiw');
M_.param_names_long = char(M_.param_names_long, 'phiw');
M_.param_names = char(M_.param_names, 'phip');
M_.param_names_tex = char(M_.param_names_tex, 'phip');
M_.param_names_long = char(M_.param_names_long, 'phip');
M_.param_names = char(M_.param_names, 'gammaw');
M_.param_names_tex = char(M_.param_names_tex, 'gammaw');
M_.param_names_long = char(M_.param_names_long, 'gammaw');
M_.param_names = char(M_.param_names, 'gammap');
M_.param_names_tex = char(M_.param_names_tex, 'gammap');
M_.param_names_long = char(M_.param_names_long, 'gammap');
M_.param_names = char(M_.param_names, 'epsp');
M_.param_names_tex = char(M_.param_names_tex, 'epsp');
M_.param_names_long = char(M_.param_names_long, 'epsp');
M_.param_names = char(M_.param_names, 'epsw');
M_.param_names_tex = char(M_.param_names_tex, 'epsw');
M_.param_names_long = char(M_.param_names_long, 'epsw');
M_.param_names = char(M_.param_names, 'gXs');
M_.param_names_tex = char(M_.param_names_tex, 'gXs');
M_.param_names_long = char(M_.param_names_long, 'gXs');
M_.param_names = char(M_.param_names, 'b');
M_.param_names_tex = char(M_.param_names_tex, 'b');
M_.param_names_long = char(M_.param_names_long, 'b');
M_.param_names = char(M_.param_names, 'Pis');
M_.param_names_tex = char(M_.param_names_tex, 'Pis');
M_.param_names_long = char(M_.param_names_long, 'Pis');
M_.param_names = char(M_.param_names, 'k0');
M_.param_names_tex = char(M_.param_names_tex, 'k0');
M_.param_names_long = char(M_.param_names_long, 'k0');
M_.param_names = char(M_.param_names, 'k1');
M_.param_names_tex = char(M_.param_names_tex, 'k1');
M_.param_names_long = char(M_.param_names_long, 'k1');
M_.param_names = char(M_.param_names, 'k2');
M_.param_names_tex = char(M_.param_names_tex, 'k2');
M_.param_names_long = char(M_.param_names_long, 'k2');
M_.param_names = char(M_.param_names, 'k3');
M_.param_names_tex = char(M_.param_names_tex, 'k3');
M_.param_names_long = char(M_.param_names_long, 'k3');
M_.param_names = char(M_.param_names, 'k4');
M_.param_names_tex = char(M_.param_names_tex, 'k4');
M_.param_names_long = char(M_.param_names_long, 'k4');
M_.param_names = char(M_.param_names, 'gamma1');
M_.param_names_tex = char(M_.param_names_tex, 'gamma1');
M_.param_names_long = char(M_.param_names_long, 'gamma1');
M_.param_names = char(M_.param_names, 'gamma2');
M_.param_names_tex = char(M_.param_names_tex, 'gamma2');
M_.param_names_long = char(M_.param_names_long, 'gamma2');
M_.param_names = char(M_.param_names, 'phi');
M_.param_names_tex = char(M_.param_names_tex, 'phi');
M_.param_names_long = char(M_.param_names_long, 'phi');
M_.param_names = char(M_.param_names, 'psi');
M_.param_names_tex = char(M_.param_names_tex, 'psi');
M_.param_names_long = char(M_.param_names_long, 'psi');
M_.param_names = char(M_.param_names, 'thetas');
M_.param_names_tex = char(M_.param_names_tex, 'thetas');
M_.param_names_long = char(M_.param_names_long, 'thetas');
M_.param_names = char(M_.param_names, 'T');
M_.param_names_tex = char(M_.param_names_tex, 'T');
M_.param_names_long = char(M_.param_names_long, 'T');
M_.param_names = char(M_.param_names, 'Ns');
M_.param_names_tex = char(M_.param_names_tex, 'Ns');
M_.param_names_long = char(M_.param_names_long, 'Ns');
M_.param_names = char(M_.param_names, 'iks');
M_.param_names_tex = char(M_.param_names_tex, 'iks');
M_.param_names_long = char(M_.param_names_long, 'iks');
M_.param_names = char(M_.param_names, 'gs');
M_.param_names_tex = char(M_.param_names_tex, 'gs');
M_.param_names_long = char(M_.param_names_long, 'gs');
M_.param_names = char(M_.param_names, 'rhoi');
M_.param_names_tex = char(M_.param_names_tex, 'rhoi');
M_.param_names_long = char(M_.param_names_long, 'rhoi');
M_.param_names = char(M_.param_names, 'phipi');
M_.param_names_tex = char(M_.param_names_tex, 'phipi');
M_.param_names_long = char(M_.param_names_long, 'phipi');
M_.param_names = char(M_.param_names, 'phiy');
M_.param_names_tex = char(M_.param_names_tex, 'phiy');
M_.param_names_long = char(M_.param_names_long, 'phiy');
M_.param_names = char(M_.param_names, 'si');
M_.param_names_tex = char(M_.param_names_tex, 'si');
M_.param_names_long = char(M_.param_names_long, 'si');
M_.param_names = char(M_.param_names, 'rhoA');
M_.param_names_tex = char(M_.param_names_tex, 'rhoA');
M_.param_names_long = char(M_.param_names_long, 'rhoA');
M_.param_names = char(M_.param_names, 'rhog');
M_.param_names_tex = char(M_.param_names_tex, 'rhog');
M_.param_names_long = char(M_.param_names_long, 'rhog');
M_.param_names = char(M_.param_names, 'rhot');
M_.param_names_tex = char(M_.param_names_tex, 'rhot');
M_.param_names_long = char(M_.param_names_long, 'rhot');
M_.param_names = char(M_.param_names, 'rhom');
M_.param_names_tex = char(M_.param_names_tex, 'rhom');
M_.param_names_long = char(M_.param_names_long, 'rhom');
M_.param_names = char(M_.param_names, 'rhop');
M_.param_names_tex = char(M_.param_names_tex, 'rhop');
M_.param_names_long = char(M_.param_names_long, 'rhop');
M_.param_names = char(M_.param_names, 'sA');
M_.param_names_tex = char(M_.param_names_tex, 'sA');
M_.param_names_long = char(M_.param_names_long, 'sA');
M_.param_names = char(M_.param_names, 'sg');
M_.param_names_tex = char(M_.param_names_tex, 'sg');
M_.param_names_long = char(M_.param_names_long, 'sg');
M_.param_names = char(M_.param_names, 'st');
M_.param_names_tex = char(M_.param_names_tex, 'st');
M_.param_names_long = char(M_.param_names_long, 'st');
M_.param_names = char(M_.param_names, 'sm');
M_.param_names_tex = char(M_.param_names_tex, 'sm');
M_.param_names_long = char(M_.param_names_long, 'sm');
M_.param_names = char(M_.param_names, 'sp');
M_.param_names_tex = char(M_.param_names_tex, 'sp');
M_.param_names_long = char(M_.param_names_long, 'sp');
M_.param_names = char(M_.param_names, 'hs');
M_.param_names_tex = char(M_.param_names_tex, 'hs');
M_.param_names_long = char(M_.param_names_long, 'hs');
M_.param_names = char(M_.param_names, 'es');
M_.param_names_tex = char(M_.param_names_tex, 'es');
M_.param_names_long = char(M_.param_names_long, 'es');
M_.param_names = char(M_.param_names, 'lam1s');
M_.param_names_tex = char(M_.param_names_tex, 'lam1s');
M_.param_names_long = char(M_.param_names_long, 'lam1s');
M_.param_names = char(M_.param_names, 'Cs');
M_.param_names_tex = char(M_.param_names_tex, 'Cs');
M_.param_names_long = char(M_.param_names_long, 'Cs');
M_.param_names = char(M_.param_names, 'Ys');
M_.param_names_tex = char(M_.param_names_tex, 'Ys');
M_.param_names_long = char(M_.param_names_long, 'Ys');
M_.param_names = char(M_.param_names, 'vps');
M_.param_names_tex = char(M_.param_names_tex, 'vps');
M_.param_names_long = char(M_.param_names_long, 'vps');
M_.param_names = char(M_.param_names, 'vws');
M_.param_names_tex = char(M_.param_names_tex, 'vws');
M_.param_names_long = char(M_.param_names_long, 'vws');
M_.param_names = char(M_.param_names, 'Is');
M_.param_names_tex = char(M_.param_names_tex, 'Is');
M_.param_names_long = char(M_.param_names_long, 'Is');
M_.param_names = char(M_.param_names, 'Ks');
M_.param_names_tex = char(M_.param_names_tex, 'Ks');
M_.param_names_long = char(M_.param_names_long, 'Ks');
M_.param_names = char(M_.param_names, 'ints');
M_.param_names_tex = char(M_.param_names_tex, 'ints');
M_.param_names_long = char(M_.param_names_long, 'ints');
M_.param_names = char(M_.param_names, 'Rs');
M_.param_names_tex = char(M_.param_names_tex, 'Rs');
M_.param_names_long = char(M_.param_names_long, 'Rs');
M_.param_names = char(M_.param_names, 'ws');
M_.param_names_tex = char(M_.param_names_tex, 'ws');
M_.param_names_long = char(M_.param_names_long, 'ws');
M_.param_names = char(M_.param_names, 'wrs');
M_.param_names_tex = char(M_.param_names_tex, 'wrs');
M_.param_names_long = char(M_.param_names_long, 'wrs');
M_.param_names = char(M_.param_names, 'mrss');
M_.param_names_tex = char(M_.param_names_tex, 'mrss');
M_.param_names_long = char(M_.param_names_long, 'mrss');
M_.param_names = char(M_.param_names, 'prs');
M_.param_names_tex = char(M_.param_names_tex, 'prs');
M_.param_names_long = char(M_.param_names_long, 'prs');
M_.param_names = char(M_.param_names, 'pms');
M_.param_names_tex = char(M_.param_names_tex, 'pms');
M_.param_names_long = char(M_.param_names_long, 'pms');
M_.param_names = char(M_.param_names, 'Lams');
M_.param_names_tex = char(M_.param_names_tex, 'Lams');
M_.param_names_long = char(M_.param_names_long, 'Lams');
M_.param_names = char(M_.param_names, 'betah');
M_.param_names_tex = char(M_.param_names_tex, 'betah');
M_.param_names_long = char(M_.param_names_long, 'betah');
M_.param_names = char(M_.param_names, 'su');
M_.param_names_tex = char(M_.param_names_tex, 'su');
M_.param_names_long = char(M_.param_names_long, 'su');
M_.param_names = char(M_.param_names, 'rhou');
M_.param_names_tex = char(M_.param_names_tex, 'rhou');
M_.param_names_long = char(M_.param_names_long, 'rhou');
M_.param_names = char(M_.param_names, 'F');
M_.param_names_tex = char(M_.param_names_tex, 'F');
M_.param_names_long = char(M_.param_names_long, 'F');
M_.param_partitions = struct();
M_.exo_det_nbr = 0;
M_.exo_nbr = 7;
M_.endo_nbr = 52;
M_.param_nbr = 62;
M_.orig_endo_nbr = 51;
M_.aux_vars(1).endo_index = 52;
M_.aux_vars(1).type = 3;
M_.aux_vars(1).orig_index = 3;
M_.aux_vars(1).orig_lead_lag = 0;
M_.Sigma_e = zeros(7, 7);
M_.Correlation_matrix = eye(7, 7);
M_.H = 0;
M_.Correlation_matrix_ME = 1;
M_.sigma_e_is_diagonal = 1;
M_.det_shocks = [];
options_.block=0;
options_.bytecode=0;
options_.use_dll=0;
M_.hessian_eq_zero = 1;
erase_compiled_function('dynaremodel_KurmannSims_Part3_static');
erase_compiled_function('dynaremodel_KurmannSims_Part3_dynamic');
M_.orig_eq_nbr = 51;
M_.eq_nbr = 52;
M_.ramsey_eq_nbr = 0;
M_.set_auxiliary_variables = exist(['./' M_.fname '_set_auxiliary_variables.m'], 'file') == 2;
M_.lead_lag_incidence = [
 0 22 0;
 0 23 0;
 0 24 0;
 1 25 74;
 0 26 75;
 2 27 76;
 3 28 77;
 4 29 0;
 5 30 78;
 0 31 79;
 6 32 80;
 7 33 0;
 8 34 0;
 9 35 0;
 0 36 81;
 10 37 0;
 0 38 82;
 11 39 0;
 0 40 83;
 0 41 84;
 0 42 85;
 12 43 0;
 0 44 0;
 13 45 86;
 0 46 0;
 0 47 87;
 0 48 88;
 0 49 0;
 14 50 0;
 0 51 0;
 15 52 0;
 0 53 0;
 16 54 0;
 0 55 0;
 17 56 0;
 18 57 0;
 0 58 89;
 0 59 0;
 0 60 0;
 0 61 0;
 0 62 0;
 0 63 0;
 0 64 0;
 0 65 0;
 0 66 0;
 19 67 0;
 0 68 0;
 0 69 0;
 20 70 0;
 0 71 0;
 0 72 0;
 21 73 0;]';
M_.nstatic = 21;
M_.nfwrd   = 10;
M_.npred   = 15;
M_.nboth   = 6;
M_.nsfwrd   = 16;
M_.nspred   = 21;
M_.ndynamic   = 31;
M_.equations_tags = {
};
M_.static_and_dynamic_models_differ = 0;
M_.exo_names_orig_ord = [1:7];
M_.maximum_lag = 1;
M_.maximum_lead = 1;
M_.maximum_endo_lag = 1;
M_.maximum_endo_lead = 1;
oo_.steady_state = zeros(52, 1);
M_.maximum_exo_lag = 0;
M_.maximum_exo_lead = 0;
oo_.exo_steady_state = zeros(7, 1);
M_.params = NaN(62, 1);
M_.NNZDerivatives = [243; -1; -1];
load param_new_fixed_new;
set_param_value('Gs',Gs);
set_param_value('alpha',alpha);
set_param_value('beta',beta);
set_param_value('delta',delta);
set_param_value('phiw',phiw);
set_param_value('phip',phip);
set_param_value('gammaw',gammaw);
set_param_value('gammap',gammap);
set_param_value('epsp',epsp);
set_param_value('epsw',epsw);
set_param_value('gXs',gXs);
set_param_value('b',b);
set_param_value('Pis',Pis);
set_param_value('k0',k0);
set_param_value('k1',k1);
set_param_value('k2',k2);
set_param_value('k3',k3);
set_param_value('k4',k4);
set_param_value('gamma1',gamma1);
set_param_value('gamma2',gamma2);
set_param_value('phi',phi);
set_param_value('psi',psi);
set_param_value('thetas',thetas);
set_param_value('T',T);
set_param_value('Ns',Ns);
set_param_value('iks',iks);
set_param_value('gs',gs);
set_param_value('rhoi',rhoi);
set_param_value('phipi',phipi);
set_param_value('si',si);
set_param_value('rhoA',rhoA);
set_param_value('rhog',rhog);
set_param_value('rhot',rhot);
set_param_value('rhom',rhom);
set_param_value('rhop',rhop);
set_param_value('sA',sA);
set_param_value('sg',sg);
set_param_value('sp',sp);
set_param_value('sm',sm);
set_param_value('st',st);
set_param_value('phiy',phiy);
set_param_value('hs',hs);
set_param_value('es',es);
set_param_value('lam1s',lam1s);
set_param_value('Ys',Ys);
set_param_value('Cs',Cs);
set_param_value('Is',Is);
set_param_value('Ks',Ks);
set_param_value('Rs',Rs);
set_param_value('ints',ints);
set_param_value('vps',vps);
set_param_value('vws',vws);
set_param_value('ws',ws);
set_param_value('wrs',wrs);
set_param_value('mrss',mrss);
set_param_value('prs',prs);
set_param_value('pms',pms);
set_param_value('Lams',Lams);
set_param_value('betah',betah);
set_param_value('su',su);
set_param_value('rhou',rhou);
set_param_value('F',F);
%
% INITVAL instructions
%
options_.initval_file = 0;
oo_.steady_state( 1 ) = M_.params(1);
oo_.steady_state( 2 ) = M_.params(15)*M_.params(42)^(M_.params(16)-1);
oo_.steady_state( 3 ) = M_.params(17)*M_.params(43)^(M_.params(18)-1);
oo_.steady_state( 4 ) = log(M_.params(44));
oo_.steady_state( 5 ) = log(M_.params(44));
oo_.steady_state( 7 ) = log(M_.params(45));
oo_.steady_state( 29 ) = log(M_.params(46));
oo_.steady_state( 13 ) = log(M_.params(43));
oo_.steady_state( 14 ) = log(M_.params(42));
oo_.steady_state( 24 ) = log(M_.params(25));
oo_.steady_state( 17 ) = log(M_.params(49));
oo_.steady_state( 18 ) = log(M_.params(50));
oo_.steady_state( 32 ) = log(Kss);
oo_.steady_state( 8 ) = M_.params(51);
oo_.steady_state( 10 ) = log(M_.params(52));
oo_.steady_state( 35 ) = M_.params(48);
oo_.steady_state( 33 ) = M_.params(47);
oo_.steady_state( 34 ) = log(M_.params(25)*M_.params(42)*M_.params(43));
oo_.steady_state( 23 ) = log(M_.params(25)*M_.params(42)*M_.params(43)/M_.params(48));
oo_.steady_state( 22 ) = log(M_.params(53));
oo_.steady_state( 25 ) = M_.params(54);
oo_.steady_state( 15 ) = log(M_.params(55));
oo_.steady_state( 30 ) = M_.params(56);
oo_.steady_state( 28 ) = log(M_.params(57));
oo_.steady_state( 26 ) = M_.params(46)*M_.params(57)/(1-M_.params(6)*M_.params(11)*M_.params(58)*M_.params(13)^(M_.params(9)*(1-M_.params(8))));
oo_.steady_state( 27 ) = M_.params(46)/(1-M_.params(6)*M_.params(11)*M_.params(58)*M_.params(13)^((1-M_.params(9))*(M_.params(8)-1)));
oo_.steady_state( 20 ) = log(M_.params(55)*M_.params(53)^M_.params(10)/(1-M_.params(58)*M_.params(5)*M_.params(13)^(M_.params(10)*(1-M_.params(7)))));
oo_.steady_state( 21 ) = log(M_.params(53)^M_.params(10)/(1-M_.params(58)*M_.params(5)*M_.params(13)^((1-M_.params(10))*(M_.params(7)-1))));
oo_.steady_state( 31 ) = 0;
oo_.steady_state( 6 ) = 0;
oo_.steady_state( 16 ) = 0;
oo_.steady_state( 12 ) = log(M_.params(23));
oo_.steady_state( 36 ) = log(M_.params(27));
oo_.steady_state( 11 ) = 0;
oo_.steady_state( 19 ) = M_.params(58);
oo_.steady_state( 37 ) = M_.params(11);
oo_.steady_state( 9 ) = 0;
oo_.steady_state( 38 ) = 0;
oo_.steady_state( 40 ) = 0;
oo_.steady_state( 39 ) = 0;
oo_.steady_state( 41 ) = log(M_.params(27));
oo_.steady_state( 43 ) = log(M_.params(27));
oo_.steady_state( 48 ) = log(M_.params(42))+log(M_.params(25));
oo_.steady_state( 51 ) = M_.params(53)*Lds/M_.params(46);
oo_.steady_state(52)=oo_.exo_steady_state(3);
if M_.exo_nbr > 0
	oo_.exo_simul = ones(M_.maximum_lag,1)*oo_.exo_steady_state';
end
if M_.exo_det_nbr > 0
	oo_.exo_det_simul = ones(M_.maximum_lag,1)*oo_.exo_det_steady_state';
end
steady;
%
% SHOCKS instructions
%
M_.exo_det_length = 0;
M_.Sigma_e(1, 1) = 1;
M_.Sigma_e(2, 2) = 1;
M_.Sigma_e(3, 3) = 1;
M_.Sigma_e(4, 4) = 1;
M_.Sigma_e(5, 5) = 1;
M_.Sigma_e(6, 6) = 1;
M_.Sigma_e(7, 7) = 1;
options_.ar = 0;
options_.irf = 200;
options_.nograph = 1;
options_.order = 1;
var_list_ = char();
info = stoch_simul(var_list_);
save('dynaremodel_KurmannSims_Part3_results.mat', 'oo_', 'M_', 'options_');
if exist('estim_params_', 'var') == 1
  save('dynaremodel_KurmannSims_Part3_results.mat', 'estim_params_', '-append');
end
if exist('bayestopt_', 'var') == 1
  save('dynaremodel_KurmannSims_Part3_results.mat', 'bayestopt_', '-append');
end
if exist('dataset_', 'var') == 1
  save('dynaremodel_KurmannSims_Part3_results.mat', 'dataset_', '-append');
end
if exist('estimation_info', 'var') == 1
  save('dynaremodel_KurmannSims_Part3_results.mat', 'estimation_info', '-append');
end
if exist('dataset_info', 'var') == 1
  save('dynaremodel_KurmannSims_Part3_results.mat', 'dataset_info', '-append');
end
if exist('oo_recursive_', 'var') == 1
  save('dynaremodel_KurmannSims_Part3_results.mat', 'oo_recursive_', '-append');
end


disp(['Total computing time : ' dynsec2hms(toc(tic0)) ]);
if ~isempty(lastwarn)
  disp('Note: warning(s) encountered in MATLAB/Octave code')
end
